<template>
  <view class="YgSearch">
      <u-search placeholder="搜索"
      :clearabled="true"
      :show-action="false"
      input-align="center"
      height="80"
      :input-style="{height:`70%`}"
      shape="square" 
      bg-color="#ffffff"
      :search-icon="false"
      @focus="jumpToSearch"
      ></u-search>
  </view>
</template>

<script>
export default {
  methods: {
    // 点击搜索跳转到搜索页面
    jumpToSearch(){
      this.$u.route(`/pages/search_center/search_center`)
    }
  }
}
</script>

<style lang="scss" scoped>
.YgSearch{
  padding: 9rpx 26rpx;
  background-color: #ff2d4a;
}
</style>